﻿@using Achievement.DataModels;
@using Achievement.Common;
@model dynamic
@{
    ViewBag.Title = "Index";
}

<!--Middle section-->
<div id="middle-sdo1">
  <div id="middle">
    <!--Message-->
    <div class="message">北京电力工程公司成果库系统欢迎您！</div>
    <!--Feature Box-->
    <div class="gray-box">
      <div class="gray-line">
        <div class="gray-bg">
        @foreach (VSumAchievementFolders item in Model.HotFolder)
	    {
		    <div class="features" onclick="window.location.href='/Achievement?fid=@item.FID'">
            <h3><img src="/images/folder.png" alt="" width="32" height="32" />@item.Name.SecureSubString(10)</h3>
            <p>文件夹拥有 @item.ACount 份成果文件</p>
            </div>
	    } 
        </div>
      </div>
    </div>
    <!--Who we are-->
    <div class="who-home">
      <h2 class="patrn">最新发布成果</h2>
      <img src="/images/who-we.jpg" alt="" class="flleft grayborR" />
      <ul style=" line-height:20px">
      @foreach (Achievements item in Model.NewAchievements)
      {
          <li><a style="border-bottom:1px solid #DADDE2;color:#1d93ab" href="/Achievement/view?id=@item.ID">@item.ProjectName</a><span style=" float:right">@item.CreateTime.SecureToDateTime().ToString("yyyy-MM-dd")</span></li>
      }
        
      </ul>
    </div>
    <!--Tweet Box-->
    <div class="tweet">
      <h2 class="blue">最新评论</h2>
      @foreach (VComment_A_U item in Model.NewComment)
      {
          <div class="tweet-box">
            <p><a href="/Achievement/view?id=@item.AID">@item.ProjectName</a><br/>
            @item.UserName : @item.Content.SecureSubString(100,"...")<span class="time">@item.CreateTime.ToString("yyyy-MM-dd")</span></p>
          </div>
      }
    </div>
    <div class="clearfix"> </div>
  </div>
</div>
<!--Middle section End -->